/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package plains;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

/**
 *
 * @author enriquegozalozarzosa
 */
public class SectionPlain implements Serializable{
    
    private Integer idSection;
    private Date startTime;
    private Date finishTime; 
    private AddressPlain destiny; 
    private AddressPlain origin; 
    private WorkerPlain worker; 
    private StatusPlain status; 
    private Double km;
    private Integer type_vehicule;
    private Double price;
    private ArrayList<ShipmentPlain> shipments;

    public SectionPlain(Date startTime, Date finishTime, AddressPlain destiny, AddressPlain origin, WorkerPlain worker, StatusPlain status, Double km, Integer type_vehicule, Double price) {
        this.startTime = startTime;
        this.finishTime = finishTime;
        this.destiny = destiny;
        this.origin = origin;
        this.worker = worker;
        this.status = status;
        this.km = km;
        this.type_vehicule = type_vehicule;
        this.price = price;
        this.shipments=new ArrayList<ShipmentPlain>();
    }

    
    
    public AddressPlain getDestiny() {
        return destiny;
    }

    public void setDestiny(AddressPlain destiny) {
        this.destiny = destiny;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public Integer getIdSection() {
        return idSection;
    }

    public void setIdSection(Integer idSection) {
        this.idSection = idSection;
    }

    public Double getKm() {
        return km;
    }

    public void setKm(Double km) {
        this.km = km;
    }

    public AddressPlain getOrigin() {
        return origin;
    }

    public void setOrigin(AddressPlain origin) {
        this.origin = origin;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public ArrayList<ShipmentPlain> getShipments() {
        return shipments;
    }

    public void setShipments(ArrayList<ShipmentPlain> shipments) {
        this.shipments = shipments;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public StatusPlain getStatus() {
        return status;
    }

    public void setStatus(StatusPlain status) {
        this.status = status;
    }

    public Integer getType_vehicule() {
        return type_vehicule;
    }

    public void setType_vehicule(Integer type_vehicule) {
        this.type_vehicule = type_vehicule;
    }

    public WorkerPlain getWorker() {
        return worker;
    }

    public void setWorker(WorkerPlain worker) {
        this.worker = worker;
    }

}
